<?php 
require "Controller.php";
require "Home/Model/indexModel.php";
class IndexController extends Controller{
	
	function __construct(){
		parent::__construct();
		$this->mod=new musicModel;
	}
	public function index(){
	
		$data1=$this->mod->getmusics1();
		$data2=$this->mod->getmusics2();
		$data3=$this->mod->getmusics3();
		$data4=$this->mod->getmusics4();
		$data5=$this->mod->getmusics5();
		$data6=$this->mod->getTopHit();
		$data7=$this->mod->getTopDown();
		
		$this->assign('musics1',$data1);
		$this->assign('musics2',$data2);
		$this->assign('musics3',$data3);
		$this->assign('musics4',$data4);
		$this->assign('musics5',$data5);
		$this->assign('Tophit',$data6);
		$this->assign('Topdown',$data7);
		$this->display(); 
		
	}

	public function lists(){
        $data8 = $this->mod->getmusicstype();
        $data9 = $this->mod->getmusicstypename();

        $data12=$this->mod->getTopDown2();
        $this->assign('Topdown2',$data12);

        $this->assign('musics6',$data8);
        $this->assign('musics7',$data9);
        $this->display();
	}

	public function content(){
		$mid=$_GET['mid'];
        $data10=$this->mod->getmusicsContentbyID();
        $data11 = $this->mod->getmusicstype2();
        $this->assign('music10',$data10);
        $this->assign('musics11',$data11);
        $this->display();

	}
	

}


 ?>